﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Drawing.Imaging;
using MCUPic.Core;

namespace MCUPic.Core.Functions.BulkConvert
{
    public class BulkConvertParam : IScreenWindow
    {
        public string OutputPath;
        public string[] Files;
        public int CutPosX;
        public int CutPosY;
        public ScaleMode ScaleMode;
        public PixelFormat PixelFormat;
        public bool[] OutputOption;

        public Size ScreenSize => new Size(ScreenWidth, ScreenHeight);

        public int ScreenWidth { get; set; }

        public int ScreenHeight { get; set; }

        /// <summary>
        /// 定义输出矩形，矩形大小为屏幕大小，矩形位置为剪切位置
        /// </summary>
        public Rectangle ScreenWindow => new Rectangle(CutPosX, CutPosY, ScreenWidth, ScreenHeight);

        public Point ScreenLocation => new Point(CutPosX, CutPosY);
    }
}
